<script setup>
    import request from './axios'
    import {reactive} from 'vue'

    let message = reactive({
        "code":1,
        "content":xxxxxxxx,
    })

    function getLoveWord(){
        return request.post("https://api.uomg.com/api/rand.qinghua")
    }

    async function getLoveMessage() {
        let {data} = await getLoveWord()
      Object.assign(message,response.data)

    }
    
</script>

<template>
  <div>
    <h1 v-text="message"></h1>
    <button @click="getLoveMessage()">change</button>
  </div>
</template>

<style scoped>
</style>